package com.xhs.zdl.demo.ListViewFragment;


import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.xhs.zdl.demo.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class ListViewShowFragment extends Fragment {


    private View view;
    private TextView textView;

    public ListViewShowFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        view = inflater.inflate(R.layout.fragment_list_view_show, container, false);

        initView();

        return view;
    }

    private void initView() {
        textView = (TextView) view.findViewById(R.id.tv);

        String data = getArguments().getString("data");
        textView.setText(data);
    }

}
